/*
 * GuudScreen.h
 *
 *  Created on: 2013-1-23
 *      Author: heqiu
 */

#ifndef GUUDSCREEN_H_
#define GUUDSCREEN_H_

#include "GuudPoint.h"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "GuudFont.h"
#include "GuudColor.h"
#include "GuudButton.h"
#include "GuudCanvas.h"
#include "GuudDraw.h"

namespace guud {

class GuudScreen {
public:
	GuudPoint m_gpPixelPos;	//左上顶点在底层画布上的像素点坐标
	uint32_t m_uiWidthPixel;
	uint32_t m_uiHeightPixel;
	SDL_Surface* m_pSDL_Surface;	//屏幕

	GuudScreen(uint32_t uiWidthPixel, uint32_t uiHeightPixel);
	void setCaption(const char * pName);
	void white();
	void show();
	void drawCoordinate(GuudPoint & gp, GuudFont & stFont);
	void drawStr(GuudPoint & gp, GuudFont & stFont, const char * pStr);
	void drawButton(GuudPoint & gp, GuudButton & stButton);
	void drawRect(GuudRect & gr,GuudColor & color);
	void drawLine(GuudPoint & gpBegin,GuudPoint & gpEnd,GuudColor & color);
private:
	GuudScreen(const GuudScreen & obj);
};

}

#endif /* GUUDSCREEN_H_ */
